//
//  PersonInfoCell.m
//  BigJoy
//
//  Created by Rowling on 2017/7/3.
//  Copyright © 2017年 Rowling. All rights reserved.
//

#import "PersonInfoCell.h"

@interface PersonInfoCell()
@property (weak, nonatomic) IBOutlet UILabel *titleLable;
@property (weak, nonatomic) IBOutlet UILabel *contentLable;
@property (weak, nonatomic) IBOutlet UIImageView *iconImageView;

@end

@implementation PersonInfoCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setData:(NSDictionary *)data {
    _data = data;
    self.titleLable.text = data[@"title"];
    self.iconImageView.image = [UIImage imageNamed:data[@"img"]];
}

+(instancetype)cellWithTalbelView:(UITableView *)table {
    PersonInfoCell * cell = [table dequeueReusableCellWithIdentifier:@"PCell"];
    if (cell == nil) {
        cell = [[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:nil options:nil].firstObject;
    }
    return cell;
}

@end
